/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.kurvykurvy.page;

import java.awt.Point;
import java.awt.image.BufferedImage;
import java.util.ArrayList;

/**
 *
 * @author HY
 */
public interface PageSpreadLayout
{
    public static final int LEFT_SPREAD_PAGE = 0;
    public static final int RIGHT_SPREAD_PAGE = 1;

    public void setPageSpreadMask( BufferedImage img );
    public BufferedImage getPageSpreadMask();
    public void setMaskOffset( Point p );
    public Point getMaskOffset();

    public void setPageLayoutTemplate( PageLayoutTemplate template );
    public PageLayoutTemplate getPageLayoutTemplate( int type );

    public void addImage( BufferedImage img );
    public void removeImage( BufferedImage img );
    public void clearImages();
    public void addImages( ArrayList<BufferedImage> imgs );
    public void setImages( ArrayList<BufferedImage> imags );
    public ArrayList<BufferedImage> getImages();

    public void attachImage( BufferedImage img, ImageFrameTemplate template );
    public void detachImage( BufferedImage img );

    public ArrayList<ImageFrame> getImageFrames();
}
